<template>
	<view class="home">
		<view class="nav">
			<view class="text-right">
				<image src="../../static/icon/text-left.svg" mode=""></image>
			</view>
			<view class="person-circle">
				<image src="../../static/icon/person-fill.svg" mode=""></image>
			</view>
		</view>
		<view class="text-hello">
			<text>中午好，李华</text>
		</view>
		<view class="todayClass">
			<view class="contain">
				<text class="text-title">今日课程</text>
				<text class="text-two">上午课程</text>
				<view class="class-item">
					<image src="../../static/image/classImage.svg" mode=""></image>
				</view>
				<image src="../../static/icon/LineX.svg" mode="" id="LineX"></image>
				<text class="text-two">下午课程</text>
				<view class="class-item">
					<image src="../../static/image/classImage.svg" mode=""></image>
				</view>
			</view>
		</view>
		<view class="allClass">
			<text class="text-title">所有课程</text>
			<view class="chatPanel">
				<view class="contain">
					<view class="chatItem">
						<view class="classImage">
							<text class="imageName">面</text>
						</view>
						<text class="className">面向对象程序设计</text>
						<text class="message">程时</text>
						<text class="time"></text>
						<image src="../../static/icon/chevron-right.svg" mode="" id="chevron"></image>
					</view>
					<view class="chatItem">
						<view class="classImage">
							<text class="imageName">面</text>
						</view>
						<text class="className">面向对象程序设计</text>
						<text class="message">程时</text>
						<text class="time"></text>
						<image src="../../static/icon/chevron-right.svg" mode="" id="chevron"></image>
					</view>
					<view class="chatItem">
						<view class="classImage">
							<text class="imageName">面</text>
						</view>
						<text class="className">面向对象程序设计</text>
						<text class="message">程时</text>
						<text class="time"></text>
						<image src="../../static/icon/chevron-right.svg" mode="" id="chevron"></image>
					</view>
					<view class="chatItem">
						<view class="classImage">
							<text class="imageName">面</text>
						</view>
						<text class="className">面向对象程序设计</text>
						<text class="message">程时</text>
						<text class="time"></text>
						<image src="../../static/icon/chevron-right.svg" mode="" id="chevron"></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.home {
		margin: 0 auto;
		padding: 0;

		// position: relative;
		.nav {
			width: 340px;
			height: 44px;
			margin: 0 auto;

			// background-color: blue;
			.text-right {
				float: left;
				margin-top: 6px;

				// margin-left: 20px;
				image {
					width: 32px;
					height: 32px;
				}
			}

			.person-circle {
				position: relative;
				float: right;
				margin-top: 6px;
				// margin-right: 20px;
				width: 32px;
				height: 32px;
				background-color: #d9d9d9;
				border-radius: 16px;

				image {
					position: absolute;
					width: 18px;
					height: 18px;
					top: 50%;
					left: 50%;
					transform: translate(-50%, -50%);
				}
			}
		}

		.text-hello {
			// position: absolute;
			// top: 63px;
			// left: 25px;
			margin: 18px 0 12px 25px;
			width: 192px;
			height: 38px;
			// background-color: orange;
			font-size: 32px;
			line-height: 38px;
			font-family: Arial, Helvetica, sans-serif;
			font-weight: bold;
		}

		.todayClass {
			position: relative;
			// top: 113px;
			// left: 18px;
			display: flex;
			margin: 0 auto 20px;
			width: 340px;
			height: 410px;
			// background-color: blue;
			box-sizing: border-box;
			border-radius: 16px;
			box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
			backdrop-filter: blur(20px);
			z-index: 2;

			.contain {
				margin: 20px;
				width: 300px;
				height: 370px;

				.text-title {
					display: block;
					font-size: 24px;
					line-height: 30px;
					font-family: Arial, Helvetica, sans-serif;
					font-weight: bold;
					color: #333333;
				}

				.text-two {
					display: block;
					margin: 1px 0;
					font-size: 14px;
					line-height: 16px;
					font-family: Arial, Helvetica, sans-serif;
					font-weight: lighter;
					color: #666666;
				}

				.class-item {
					margin-bottom: 8px;
					height: 144px;
					// background-color: skyblue;
					border-radius: 8px;

					image {
						height: 100%;
						width: 100%;
					}
				}

				#LineX {
					position: absolute;
					width: 300px;
					top: 96px;
				}
			}
		}

		.allClass {
			// position: absolute;
			// top: 533px;
			// left: 18px;
			// display: flex;
			margin: 0 auto 20px;
			padding: 20px;
			width: 340px;
			// height: 469px;
			// background-color: orange;
			box-sizing: border-box;
			border-radius: 16px;
			box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
			backdrop-filter: blur(20px);
			z-index: 2;

			.text-title {
				display: block;
				margin-bottom: 10px;
				font-size: 24px;
				line-height: 30px;
				font-family: Arial, Helvetica, sans-serif;
				font-weight: bold;
				color: #333333;
			}

			.chatPanel {
				margin: 0;
				width: 300px;
				// height: 514px;

				.contain {
					.chatItem {
						position: relative;
						height: 90px;
						margin-bottom: 16px;
						padding: 20px;
						box-sizing: border-box;
						border-radius: 8px;
						box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
						backdrop-filter: blur(20px);

						.classImage {
							// display: inline-block;
							width: 52px;
							height: 52px;
							background-color: #d9d9d9;
							border-radius: 4px;
							text-align: center;

							.imageName {
								display: flex;
								justify-content: center;
								align-items: center;
								text-align: center;
								height: 100%;
								font-size: 32px;
								font-family: Arial, Helvetica, sans-serif;
							}
						}

						.className {
							position: absolute;
							top: 20px;
							left: 82px;
							font-size: 15px;
							font-family: Arial, Helvetica, sans-serif;
						}

						.message {
							position: absolute;
							top: 54px;
							left: 82px;
							font-size: 14px;
							font-family: Arial, Helvetica, sans-serif;
							color: rgba(0, 0, 0, 1);
						}

						.time {
							position: absolute;
							top: 21px;
							right: 23px;
							font-size: 13px;
							font-family: Arial, Helvetica, sans-serif;
						}
						
						#chevron {
							position: absolute;
							top: 34px;
							right: 10px;
							width: 32px;
							height: 32px;
						}
					}
				}
			}
		}
	}
</style>